.PHONY: clean all info

#TARGETS := driver
#SOURCES := driver.cpp a.cpp
#OBJS    := $(SOURCES:.cpp=.o)

TARGETS := test_grades
SOURCES := test_grades.cpp grades.cpp 
OBJS    := $(SOURCES:.cpp=.o)

CXXFLAGS := -Wall -Weffc++ -std=c++11 -O3
LDFLAGS  := 

all: $(TARGETS)

clean:
	/bin/rm -f $(OBJS) $(TARGETS)

info:
	@echo Compiler:        CXX         = $(CXX)
	@echo Compile command: COMPILE.cc  = $(COMPILE.cc)
	@echo Link command:    LINK.cc     = $(LINK.cc)

#a.o: a.cpp a.hpp
# Next rule defined with explicit C++ source file such that LINK.cc will be used
#driver: driver.cpp a.o  

grades.o: grades.cpp grades.hpp
test_grades: test_grades.cpp grades.o
